home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / include / lib / rexx.h < prev    next >
C/C++ Source or Header  |  1994-02-01  |  2KB  |  53 lines

  1.  
  2. /*
  3.  * $VER: lib/rexx.h 1.0 (17.4.93)
  4.  *
  5.  * (c)Copyright 1992 Obvious Implementations Corp, All Rights Reserved
  6.  *
  7.  *  DICE REXX SUPPORT
  8.  */
  9.  
  10. #ifndef LIB_REXX_H
  11. #define LIB_REXX_H
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16. #ifndef EXEC_PORTS_H
  17. #include <exec/ports.h>
  18. #endif
  19.  
  20. long PlaceRexxCommand(struct MsgPort *, char *, char **, long *);
  21. long PlaceRexxCommandDirect(struct MsgPort *, char *, char *, char **, long *);
  22. void ProcessRexxCommands(struct MsgPort *);
  23. short CreateGlobalDiceRexxPort(struct MsgPort *, char *);
  24. short CreateDiceRexxPort(struct MsgPort *, char *);
  25. void DeleteDiceRexxPort(struct MsgPort *);
  26. int GetDiceRexxPortSlot(struct MsgPort *, char **);
  27.  
  28. extern struct Library *RexxSysBase; /*    NULL if DICE was unable to open lib*/
  29.  
  30. /*
  31.  *  Supplied by you, the user.    You must supply a DoRexxCommand() function.
  32.  *  Note that DICE will reply the rexxmsg for you, you need only process
  33.  *  it.
  34.  *
  35.  *  You must declare 'char *RexxHostName = "APPLICATION";'.  DICE will create
  36.  *  an appropriate public message port with the name "APPLICATION.xx" (DICE
  37.  *  finds a free slot).  If you supply 'char *RexxHostName = NULL;' then
  38.  *  DICE will not create a message port by default.
  39.  *
  40.  *  You can create AREXX ports with CreateDiceRexxPort() and
  41.  *  CreateGlobalDiceRexxPort().  Passing NULL as the name to
  42.  *  CreateDiceRexxPort() creates a private message port.
  43.  *  CreateDiceRexxPort() returns the port slot number (for non-global public
  44.  *  message ports) when applicable, -1 on error.
  45.  */
  46.  
  47. long DoRexxCommand(void *rexxmsg, struct MsgPort *port, char *arg0, char **resstr);
  48.  
  49. extern char *RexxHostName;
  50. extern short RexxSigBit;
  51.  
  52. #endif
  53.